﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace NinjaToolbox.PhysicsSystem
{
    public class PhysicsLayerMatrixConfigurator : MonoBehaviour
    {
        public PhysicsLayerMatrixScriptableConfigurator scriptableConfigurator;


        void OnEnable()
        {
            scriptableConfigurator.Initialization();
            PhysicsSystemManager.Instance.SetPhysicsLayerMatrix(scriptableConfigurator);
        }

        void OnDisable()
        {
            if (PhysicsSystemManager.Instance != null)
                PhysicsSystemManager.Instance.ResetPhysicsLayerMatrix();
        }
    }
}
